<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 15-1-13
 * Time: 下午3:38
 */
namespace Admin\Model;
use Think\Model\RelationModel;

class PlantModel extends RelationModel {
    protected $_link = array(
        'char' => array(
            'mapping_type'   => self::HAS_MANY,
            'foreign_key'    => 'ev_plant_id',
            'class_name'     => 'char',
            'mapping_key'    => 'id',
            'mapping_name'  => 'data'
        ),
    );

}